﻿import request from '/@/utils/request';
enum Api {
  AddRPsirs = '/api/rPsirs/add',
  DeleteRPsirs = '/api/rPsirs/delete',
  UpdateRPsirs = '/api/rPsirs/update',
  PageRPsirs = '/api/rPsirs/page',
  DetailRPsirs = '/api/rPsirs/detail',
}

// 增加道路平整度
export const addRPsirs = (params?: any) =>
	request({
		url: Api.AddRPsirs,
		method: 'post',
		data: params,
	});

// 删除道路平整度
export const deleteRPsirs = (params?: any) => 
	request({
			url: Api.DeleteRPsirs,
			method: 'post',
			data: params,
		});

// 编辑道路平整度
export const updateRPsirs = (params?: any) => 
	request({
			url: Api.UpdateRPsirs,
			method: 'post',
			data: params,
		});

// 分页查询道路平整度
export const pageRPsirs = (params?: any) => 
	request({
			url: Api.PageRPsirs,
			method: 'post',
			data: params,
		});

// 详情道路平整度
export const detailRPsirs = (id: any) => 
	request({
			url: Api.DetailRPsirs,
			method: 'get',
			data: { id },
		});


